package com.yuexun.dhdoctor.module.login.api;

import com.yuexun.dhdoctor.base.BaseEntity;
import com.yuexun.dhdoctor.module.login.bean.LoginBean;
import com.yuexun.dhdoctor.module.login.bean.UserBean;

import java.util.Map;

import retrofit.http.FieldMap;
import retrofit.http.FormUrlEncoded;
import retrofit.http.POST;
import rx.Observable;


public interface LoginApi {

    //登录
    @FormUrlEncoded
    @POST("userMobileLogin.json")
    Observable<LoginBean> dologin(@FieldMap Map<String, String> praise);

    //获取个人信息
    @FormUrlEncoded
    @POST("inquireOaAccountDetail.json")
    Observable<UserBean> getUserInfo(@FieldMap Map<String, String> praise);

    //权限
    @FormUrlEncoded
    @POST("inquireMenuListByPhone.json")
    Observable<String> getMenuPhone(@FieldMap Map<String, String> praise);

    //发送短信
    @FormUrlEncoded
    @POST("sendPhoneVerifyCode.json")
    Observable<BaseEntity<String>> sendPhoneVerifyCode(@FieldMap Map<String, String> praise);
}
